# CUDA compilation flags
CUDA_PATH ?= /usr/local/cuda
CUDA_INC_PATH = $(CUDA_PATH)/include
CUDA_LIB_PATH = $(CUDA_PATH)/lib64

# Compiler and flags
CC := nvcc
CFLAGS := -O3 -gencode arch=compute_60,code=sm_60

all: transpose

transpose: transpose.cu
	$(CC) $(CFLAGS) -I$(CUDA_INC_PATH) -L$(CUDA_LIB_PATH) $< -o $@

clean:
	rm -f transpose